package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import entities.ExtractedExam;
import entities.Principal;

public class PrincGetExamsPack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private Principal princ;
	private ExtractedExam extExm = null;

	/**
	 * constructor
	 * 
	 * @param princ
	 */
	public PrincGetExamsPack(Principal princ) {
		this.op = OpType.ExtractExam;
		this.setPrinc(princ);
	}

	/**
	 * 
	 * @return the exam
	 */
	public ExtractedExam GetExam() {
		return extExm;
	}

	/**
	 * 
	 * @param extexam
	 *            the exam to be added
	 */
	public void setExam(ExtractedExam extexam) {
		extExm = new ExtractedExam();
		extExm = extexam;
	}

	/**
	 * @return the princ
	 */
	public Principal getPrinc() {
		return princ;
	}

	/**
	 * @param princ
	 *            the princ to set
	 */
	public void setPrinc(Principal princ) {
		this.princ = princ;
	}

}
